package com.qianying.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Date;

/**
 * 报价项目实体类
 * 映射数据库中的quote_item表
 */
@Data
@TableName("quote_item")
@Schema(description = "报价项目实体类，存储报价项目相关信息")
public class QuoteItem {

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键ID，自增", example = "1")
    private Long id;

    @TableField("item_name")
    @Schema(description = "报价项目名称，唯一", required = true, example = "人工费")
    private String itemName;

    @TableField("item_code")
    @Schema(description = "报价项目代号，用于系统内部标识", example = "LABOR")
    private String itemCode;

    @TableField("description")
    @Schema(description = "报价项目说明，描述该项目的内容和计算方式", example = "人工费用，按工时计算")
    private String description;

    @TableField("create_time")
    @Schema(description = "记录创建时间，自动生成", example = "2025-08-05T10:30:00")
    private Date createTime;

    @TableField("update_time")
    @Schema(description = "记录最后更新时间，自动更新", example = "2025-08-05T15:45:00")
    private Date updateTime;
}